from django.shortcuts import render
# Create your views here.
from rest_framework.generics import CreateAPIView
from rest_framework.permissions import IsAuthenticated

from orders.serializer import SaveOrderSerializers


class SaveOrderView(CreateAPIView):
    permission_classes = (IsAuthenticated,)
    serializer_class = SaveOrderSerializers